#!/bin/bash

user_name=$(logname)
user_desktop="/home/"$user_name"/桌面/"
desk_shortcut="/home/"$user_name"/桌面/lance.desktop"
lance_shortcut='/opt/lance/share/applications/lance.desktop'

cp -r $lance_shortcut $user_desktop
cp -r $lance_shortcut /usr/share/applications/
chmod 755 $desk_shortcut
chown -R $user_name $desk_shortcut
